<!-- Message Error -->
<?php if ($this->session->flashdata('f_designers')): ?>
    <div class="msg msg-error boxwidth">
        <p><strong><?php echo $this->session->flashdata('f_designers'); ?></strong></p>
    </div>
<?php endif; ?>


<!-- Box -->
<div class="box">
    <!-- Box Head -->
    <div class="box-head">
        <h2>Add New Designer</h2>
    </div>
    <!-- End Box Head -->

    <form action="<?php echo base_url();?>admin/designers/add_submit" method="post" enctype="multipart/form-data">

        <!-- Form -->
        <div class="form">
            <p>
                <label>Nick Name <span>(Required Field)</span></label>
                <input type="text" class="field size1" name="nick_name"/>
            </p>
            <p>
                <label>Full Name <span>(Required Field)</span></label>
                <input type="text" class="field size1" name="full_name"/>
            </p>
            <p class="inline-field">
                <label>Birth Date <span>(Required Field)</span></label>
                <select class="field size2" name="bd_date">
                    <?php for($i=1;$i<=31;$i++):?>
                    <option value="<?php echo $i;?>"><?php echo $i;?></option>
                    <?php endfor;?>
                </select>
                <select class="field size3" name="bd_month">
                    <option value="01">January</option>
                    <option value="02">February</option>
                    <option value="03">March</option>
                    <option value="04">April</option>
                    <option value="05">May</option>
                    <option value="06">June</option>
                    <option value="07">July</option>
                    <option value="08">August</option>
                    <option value="09">September</option>
                    <option value="10">October</option>
                    <option value="11">November</option>
                    <option value="12">December</option>
                </select>
                <select class="field size3" name="bd_year">
                    <?php for($i=1950;$i<=date("Y");$i++):?>
                    <option value="<?php echo $i;?>"><?php echo $i;?></option>
                    <?php endfor;?>
                </select>
            </p>
            <p class="inline-field">
                <label>Nationality</label>
                <select class="field size1" name="nationality">
                    <?php foreach($nationality->result() as $n):?>
                    <option value="<?php echo $n->nationality_id;?>" <?php echo ($n->nationality_id==80)?'selected':'';?>><?php echo $n->nationality_title;?></option>
                    <?php endforeach;?>
                </select>
            </p>
            <p>
                <label>City <span>(Required Field)</span></label>
                <input type="text" class="field size1" name="city"/>
            </p>
            <p class="inline-field">
                <label>Gender <span>(Required Field)</span></label>
                <select class="field size2" name="gender">
                    <option value="M">Male</option>
                    <option value="F">Female</option>
                </select>
            </p>
            <p>
                <label>Main Photo <span>(Required Field)</span></label>
                <input type="file" class="field size1" name="main_photo"/>
            </p>
            <p>
                <label>Contact 1 <span>(Optional Field)</span></label>
                <input type="text" class="field size1" name="contact1"/>
            </p>
            <p>
                <label>Contact 2 <span>(Optional Field)</span></label>
                <input type="text" class="field size1" name="contact2"/>
            </p>
            <p>
                <label>Website 1 <span>(Optional Field)</span></label>
                <input type="text" class="field size1" name="website1"/>
            </p>
            <p>
                <label>Website 2 <span>(Optional Field)</span></label>
                <input type="text" class="field size1" name="website2"/>
            </p>
            <p>
                <label>Description <span>(Required Field)</span></label>
                <textarea class="field size1" rows="10" cols="30" name="description"></textarea>
            </p>	

        </div>
        <!-- End Form -->
        
        <!-- Form Buttons -->
        <div class="buttons">
            <input type="submit" class="button" value="submit" />
        </div>
        <!-- End Form Buttons -->
    </form>
</div>
<!-- End Box -->